for (i = 0; i < palette->priv->groups->len; ++i)
{
GtkToolItemGroupInfo *group = g_ptr_array_index (palette->priv->groups, i);
- GtkWidget *widget;
if (!group->widget)
continue;
- widget = GTK_WIDGET (group->widget);
-
if (gtk_tool_item_group_get_n_items (group->widget))
{
gint size = group_sizes[i];
else
child_allocation.x = x;
- gtk_widget_size_allocate (widget, &child_allocation);
- gtk_widget_show (widget);
+ gtk_widget_size_allocate (GTK_WIDGET (group->widget), &child_allocation);
+ gtk_widget_show (GTK_WIDGET (group->widget));
if (GTK_ORIENTATION_VERTICAL == palette->priv->orientation)
child_allocation.y += child_allocation.height;
x += child_allocation.width;
}
else
- gtk_widget_hide (widget);
+ gtk_widget_hide (GTK_WIDGET (group->widget));
}
if (GTK_ORIENTATION_VERTICAL == palette->priv->orientation)